package com.ebways.rpc.service.impl;

import com.ebways.rpc.service.User;
import com.ebways.rpc.service.UserService2;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by gmq on 2017/08/29.
 *
 * @version 1.0
 * @since 2017/08/29 15:34
 */
public class UserService2Impl implements UserService2 {

    public List<User> getList() {
        List<User> resultList = new ArrayList<User>();
        User user = new User();
        user.setId(1);
        user.setName("gmq1");
        resultList.add(user);
        user = new User();
        user.setId(2);
        user.setName("gmq2");
        resultList.add(user);
        return resultList;
    }
}
